package com.jw.qme.core.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.nio.channels.SocketChannel;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * ClassName: com.jw.qme.core.config
 * Datetime: 2025/4/4 下午10:41
 * Description:
 *
 * @author 汪佳泉
 * @version 1.0
 * @since 1.0
 */
@Configuration
public class SocketChannelConfiguration {

    /**
     * 构建用户与输出流的映射关系
     */
    @Bean("socketChannels")
    public Map<String, SocketChannel> socketChannels(){
        return new ConcurrentHashMap<>();
    }

    /**
     * 客户端的对称密钥
     */
    @Bean("symmetricKeys")
    public Map<String,String> socketKeys(){
        return new ConcurrentHashMap<>();
    }



}
